package com.briup.corejava.day07;

public class Test1 {
    public static void main(String[] args) {
        // 调用空参构造器
        Account account = new Account();
        // account.id = "1231j3123ij";
        account.setId("1231j3123ij");
        // account.balance = 1000;
        account.setBalance(1000);
        System.out.println(account.getId());
        System.out.println(account.getBalance());

        // 调用单参构造器
        Account a1 = new Account("0002");
        System.out.println(a1);
        a1.show();
        // 调用全参构造器
        Account a2 = new Account("0001",2000,true);
        System.out.println(a2);
        a2.show();
    }
}
